# -*- coding: utf-8 -*-
# 创建时间：2021/7/16 18:30
from bs4 import BeautifulSoup
import requests
import time, math, random, json
import pymysql
import re
from hhy import FileUtil,DateUtil,ToolUtil,HttpUtil
__author__ = 'LuckyHhy'

headers={
    'Accept': 'application/json, text/plain, */*',
    'Referer': 'http://goal.sports.163.com/footballpc/index.html',
    'User-Agent': HttpUtil.AgentRandom()
}

def main():
    #http://goal.sports.163.com/footballpc/index.html#/index/120/schedule
    url='http://api.sports.163.com/base/cs/union/schedule/groupByRounds?cid=120'
    res = requests.get(url=url, headers=headers)
    res.encoding='gbk'
    print(res.content)


if __name__ == '__main__':
    main()
